<!--营业概况-->
<template>
  <el-container>
    <el-header>
      <el-button class="float-right search-btn" type="primary" round>查询</el-button>
      <el-input class="select-input float-right" v-model="value" placeholder="条码/拼音/名称"></el-input>
      <el-select class="select-input float-right" width="149" v-model="value" placeholder="全部供货商">
        <el-option v-for="item in options" :key="item.value" :label="item.label" :value="item.value">
        </el-option>
      </el-select>
      <el-select class="select-input float-right" width="149" v-model="value" placeholder="全部分类" style="width:130px"></el-select>
      <el-select class="select-input float-right" width="149" v-model="value" placeholder="启用" style="width:94px;border-radius:14px 0 0 14px">
      </el-select>
      <!-- 时间选择 -->
    </el-header>

    <!-- 顶部栏 -->

    <el-main>
      <el-table class="text-center tables" :data="tableData" stripe header-cell-style="color:#409eff;background-color:#ECF5FF;text-align:center;font-size:15px;padding-left:0;padding-right:0">
        <el-table-column type="selection" width="40">
        </el-table-column>
        <el-table-column prop="uid" :label="lang._045" width="40">
        </el-table-column>
        <el-table-column prop="goodsName" :label="lang._047" width="302">
        </el-table-column>
        <el-table-column prop="barcode" :label="lang._063" width="108">
        </el-table-column>
        <el-table-column prop="goodsCategory" :label="lang._048" width="190">
        </el-table-column>
        <el-table-column prop="commissionRules" :label="lang._095" width="95">
        </el-table-column>
        <el-table-column prop="whetherGift" :label="lang._096" width="90">
        </el-table-column>
        <el-table-column prop="weigh" :label="lang._097" width="90">
        </el-table-column>
        <el-table-column prop="regularPrice" :label="lang._098" width="90">
        </el-table-column>
        <el-table-column prop="datePrice" :label="lang._099" width="90">
        </el-table-column>
        <el-table-column prop="hidden" :label="lang._080" width="90">
        </el-table-column>
        <el-table-column prop="memberDiscount" :label="lang._100" width="90">
        </el-table-column>
        <el-table-column prop="point" :label="lang._101" width="90">
        </el-table-column>
        <el-table-column prop="stock" :label="lang._067" width="90">
        </el-table-column>
        <el-table-column prop="status" :label="lang._102" width="90">
        </el-table-column>
        <el-table-column prop="supplier" :label="lang._074">
        </el-table-column>
      </el-table>
    </el-main>
    <!-- 内容栏 -->

    <el-footer>
      <el-checkbox class="float-left check-all-btn" v-model="checked">全选</el-checkbox>
      <el-button class="float-left btn" type="primary" round>批量设置</el-button>
    </el-footer>
    <!-- 底部栏 -->
  </el-container>


</template>
<style lang="less" scoped>
  .btn {
    margin-top: 15px;
    height: 30px;
    line-height: 30px;
    padding: 0 20px;
    margin-left: 20px;
    margin-right: 20px;
  }

  .el-header {
    .btn {
      margin-top: 15px;
      height: 30px;
      line-height: 30px;
      padding: 0 20px;
      margin-left: 20px;
      margin-right: 20px;
    }
    .search-btn {
      height: 30px;
      line-height: 30px;
      padding: 0 20px;
      margin-top: 15px;
      border-radius: 0 14px 14px 0;
      margin-right: 20px;
      margin-left: 0;
    }
    .select-input {
      width: 149px;
      height: 28px;
      line-height: 28px;
      margin-top: 15px;
      border: 1px solid #409EFF;
      border-right: none;
      overflow: hidden;
    }
  }

  .el-footer {
    position: fixed;
    bottom: 0;
    width: calc(100% - 200px);
    .check-all-btn {
      color: #409EFF;
    }
  }

</style>
<style scoped>
  .el-header,
  .el-footer {
    background-color: #FFF;
    color: #333;
    text-align: center;
    line-height: 60px;
  }

  .el-aside {
    background-color: #D3DCE6;
    color: #333;
    text-align: center;
    line-height: 200px;
  }

  .el-main {
    color: #333;
    text-align: center;
    /* line-height: 160px; */
  }

  body>.el-container {
    margin-bottom: 40px;
  }

  .el-container:nth-child(5) .el-aside,
  .el-container:nth-child(6) .el-aside {
    line-height: 260px;
  }

  .el-container:nth-child(7) .el-aside {
    line-height: 320px;
  }

</style>
<style>
  .el-input__inner {
    height: 28px;
    line-height: 28px;
    border: none;
    margin: 0;
  }

  .el-table .cell,
  .el-table th div,
  .el-table--border td:first-child .cell,
  .el-table--border th:first-child .cell {
    padding-left: 0;
  }

  .el-table .cell,
  .el-table th div {
    padding-right: 0;
  }

  .check-all-btn .el-checkbox__inner {
    border-radius: 50px;
  }

  .check-all-btn .el-checkbox__label {
    font-size: 18px;
  }

</style>


<script>
  export default {
    props: ['lang'],
    data() {
      return {
          tableData: [{
              uid: '1',
              goodsName: '假装是商品名字',
              barcode: '1024204830724096',
              goodsCategory: '牛逼的分类',
              commissionRules: '不提成',
              whetherGift: '是',
              weigh: '否',
              regularPrice: '是',
              datePrice: '否',
              hidden: '否',
              memberDiscount: '会员折扣',
              point: '80',
              stock: '90',
              status: '启用',
              supplier: '供货商A'
          },{
              uid: '1',
              goodsName: '假装是商品名字',
              barcode: '1024204830724096',
              goodsCategory: '牛逼的分类',
              commissionRules: '不提成',
              whetherGift: '是',
              weigh: '否',
              regularPrice: '是',
              datePrice: '否',
              hidden: '否',
              memberDiscount: '会员折扣',
              point: '80',
              stock: '90',
              status: '启用',
              supplier: '供货商A'
          },{
              uid: '1',
              goodsName: '假装是商品名字',
              barcode: '1024204830724096',
              goodsCategory: '牛逼的分类',
              commissionRules: '不提成',
              whetherGift: '是',
              weigh: '否',
              regularPrice: '是',
              datePrice: '否',
              hidden: '否',
              memberDiscount: '会员折扣',
              point: '80',
              stock: '90',
              status: '启用',
              supplier: '供货商A'
          },{
              uid: '1',
              goodsName: '假装是商品名字',
              barcode: '1024204830724096',
              goodsCategory: '牛逼的分类',
              commissionRules: '不提成',
              whetherGift: '是',
              weigh: '否',
              regularPrice: '是',
              datePrice: '否',
              hidden: '否',
              memberDiscount: '会员折扣',
              point: '80',
              stock: '90',
              status: '启用',
              supplier: '供货商A'
          },{
              uid: '1',
              goodsName: '假装是商品名字',
              barcode: '1024204830724096',
              goodsCategory: '牛逼的分类',
              commissionRules: '不提成',
              whetherGift: '是',
              weigh: '否',
              regularPrice: '是',
              datePrice: '否',
              hidden: '否',
              memberDiscount: '会员折扣',
              point: '80',
              stock: '90',
              status: '启用',
              supplier: '供货商A'
          },{
              uid: '1',
              goodsName: '假装是商品名字',
              barcode: '1024204830724096',
              goodsCategory: '牛逼的分类',
              commissionRules: '不提成',
              whetherGift: '是',
              weigh: '否',
              regularPrice: '是',
              datePrice: '否',
              hidden: '否',
              memberDiscount: '会员折扣',
              point: '80',
              stock: '90',
              status: '启用',
              supplier: '供货商A'
          },],
        multipleSelection: []
        // 可选表格的数据
      };
    },
    methods: {
      handleClick(tab, event) {
        console.log(tab, event);
      }
    }
  }

</script>
